/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo.exception;

/**
 *
 * @author VANDH, accp1209a@gmail.com
 */
public class Main {

    public static void main(String[] args) {
        Student s = new Student();

        s.marks[0] = 1;
        s.marks[1] = 2;
        s.marks[2] = 3;

        try {
            s.showMarks();
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
    }
}
